package com.stq.weixin.model.response;

import com.alibaba.fastjson.annotation.JSONField;

/**
 * @author stqsht@163.com
 * @date 2020-01-28 15:11
 */
public class WeiXinAccessToken extends WeiXinBase {
    /**
     * 获取到的凭证
     */
    @JSONField(name = "access_token")
    private String accessToken;
    /**
     * 凭证有效时间，单位：秒。目前是7200秒之内的值。
     */
    @JSONField(name = "expires_in")
    private Integer expiresIn;

    public WeiXinAccessToken() {
    }

    public WeiXinAccessToken(Integer errcode, String errmsg) {
        super(errcode, errmsg);
    }

    public String getAccessToken() {
        return accessToken;
    }

    public void setAccessToken(String accessToken) {
        this.accessToken = accessToken;
    }

    public Integer getExpiresIn() {
        return expiresIn;
    }

    public void setExpiresIn(Integer expiresIn) {
        this.expiresIn = expiresIn;
    }
}
